package com.bluefoxyu.service;

import com.bluefoxyu.game.Direction;
import com.bluefoxyu.game.GameMap;

public interface SnakeGameService {
    GameMap getMap(String sessionId);
    /**
     * <p>
     * Description:
     * </p>
     *
     * @param sessionId 用户sessionId
     * @param direction 移动的操作
     * @return: void
     * @Author: bluefoxyu
     * @Date: 2025-05-27 00:04:40
     */
    void move(String sessionId, Direction direction);
    /**
     * <p>
     * Description: 初始化地图
     * </p>
     *
     * @return: java.lang.String 返回该用户的sessionId ,目前用map来做，后续可以改善为redis
     * @Author: bluefoxyu
     * @Date: 2025-05-27 00:03:47
     */
    String startGame();

    void clearGameMap(String sessionId);
}